﻿@model Quiniela.Models.Usuario

@{
    ViewBag.Title = "Create";
}

<h2>Creakte</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Usuario</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDUsuario)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDUsuario)
            @Html.ValidationMessageFor(model => model.IDUsuario)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDPerfil_FK, "Perfil")
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDPerfil_FK", String.Empty)
            @Html.ValidationMessageFor(model => model.IDPerfil_FK)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Apellido)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Apellido)
            @Html.ValidationMessageFor(model => model.Apellido)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Cedula)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cedula)
            @Html.ValidationMessageFor(model => model.Cedula)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Activo)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Activo)
            @Html.ValidationMessageFor(model => model.Activo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Eliminado)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Eliminado)
            @Html.ValidationMessageFor(model => model.Eliminado)
        </div>

        <p>
            <input class="btn btn-success" type="submit" value="Crear" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Regresar", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
